package Exercicio3;

public class ArrayCalculator {

	int[] holder = { 1, 2, 3, 4, 5 };

	public static void main(String[] args) {
		//new ArrayCalculator().go(1);
		
		System.out.println("%: " + 4%5);
	
		int x = 42;
		int y = 12345;
		float z = 7;
		System.out.format("-%4d- ", x);
		System.out.format("-%4d- ", y);
		//System.out.format("-%4.1d- ", z);

		String s = "x1234 y56 z7 a";
		String[] sa = s.split("\\d");
		int count = 0;
		for (String t : sa)
			count++;
		System.out.println("total: " + count);

	}

	void go(int x) {
		holder[x % 5] = x++;
		go(x);
	}

}
